/**
 * 配置验证
 * @param {object} config 
 */
const names = []
export default function verify(config) {
    const { name, component } = config

    // name 配置空验证
    if (!name) { 
        throw new Error(`
Configuration information: ${ JSON.stringify(config)}
The name cannot be null or undefined or ""`)
    }

    // name 验证唯一
    if (names.includes(name)) {
        throw new Error(`The 【${name}】 is not the only`)
    }
    names.push(name)

    // 配置参数验证不完整提示
}